Page({
  data: {
    ops:['','','','']
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  getDate1(e){this.setData({'ops[0]':e.detail.value})},
  getDate2(e){this.setData({'ops[1]':e.detail.value})},
  eventhandle1(e){this.setData({'ops[2]':e.detail.value})},
  eventhandle2(e){this.setData({'ops[3]':e.detail.value})},

  sub(){
    console.log(this.data.ops)
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2];
    prevPage.setData({
      ops:this.data.ops
    },function () {
      wx.navigateBack({delta:1})
    })
  }
})